<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Collection extends Model
{
    protected $table='collection';
    protected $primaryKey='collection_id';
    protected $fillable=[
        'user_id','goods_id'
    ];

    public function my_goods()
    {
        return $this->hasOne(Goods::class,'goods_id','goods_id');
    }
}
